<%@ page language="java" contentType="text/html; charset=ISO-8859-1" pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<!--  Version: Multiflex-3 Update-7 / Layout-3             -->
<!--  Date:    January 15, 2007                            -->
<!--  Author:  Wolfgang                                    -->
<!--  License: Fully open source without restrictions.     -->
<!--           Please keep footer credits with a link to   -->
<!--           Wolfgang (www.1-2-3-4.info). Thank you!     -->

<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="cache-control" content="no-cache" />
  <meta http-equiv="expires" content="3600" />
  <meta name="revisit-after" content="2 days" />
  <meta name="robots" content="index,follow" />
  <meta name="publisher" content="Your publisher infos here ..." />
  <meta name="copyright" content="Your copyright infos here ..." />
  <meta name="author" content="Design: Wolfgang (www.1-2-3-4.info) / Modified: Your Name" />
  <meta name="distribution" content="global" />
  <meta name="description" content="Your page description here ..." />
  <meta name="keywords" content="Your keywords, keywords, keywords, here ..." />
  <link rel="stylesheet" type="text/css" media="screen,projection,print" href="./css/layout3_setup.css" />
  <link rel="stylesheet" type="text/css" media="screen,projection,print" href="./css/layout3_text.css" />
  <link rel="icon" type="image/x-icon" href="./img/favicon1.ico" />
  <title>Mantenimiento de Publicacion :.</title>
  
  <script language="javascript" type="text/javascript">

	</script>
</head>

<!-- Global IE fix to avoid layout crash when single word size wider than column width -->
<!--[if IE]><style type="text/css"> body {word-wrap: break-word;}</style><![endif]-->

<body>
  <!-- Main Page Container -->
  <div class="page-container">

    <!-- For alternative headers START PASTE here -->

    <!-- A. HEADER -->      
    <div class="header">
      
      <!-- A.1 HEADER TOP -->
      <div class="header-top">
        
        <!-- Sitelogo and sitename -->
        <a class="sitelogo" href="#" title="Go to Start page"></a>
        <div class="sitename">
          <h1><a href="index.html" title="Go to Start page">DESARROLLADORES <span style="font-weight:normal;font-size:50%;">&nbsp;upc</span></a></h1>
          <h2>Sistema de Compra y Venta por Internet </h2>
        </div>
    
        <!-- Navigation Level 0 -->
        <div class="nav0">
          <ul>
            <li><a href="#" title="Homepage en Italiano"></a></li>
          </ul>
        </div>			

        <!-- Navigation Level 1 -->
        <div class="nav1">
          <ul>
            <li><a href="index.jsp" title="Principal">Principal</a></li>
            <li><a href="ventas.jsp" title="Ventas">Ventas</a></li>
            <li><a href="comprar.jsp" title="Compras">Compras</a></li>																		
            <li><a href="listadoaviso.jsp" title="Listado de Avisos">Avisos</a></li>
          </ul>
        </div>              
      </div>
      
      <!-- A.2 HEADER MIDDLE -->
      <div class="header-middle">    
   
        <!-- Site message -->
        <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="896" height="145">
          <param name="movie" value="img/Encabezado.swf" />
          <param name="quality" value="high" />
          <embed src="img/Encabezado.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="896" height="145" ></embed>
        </object>
      </div>
      
      <!-- A.3 HEADER BOTTOM -->
      <div class="header-bottom">
      
        <!-- Navigation Level 2 (Drop-down menus) -->
        <div class="nav2">
	
          <!-- Navigation item -->
          <ul>
            <li><a href="index.jsp">Principal</a></li>
          </ul>
          
          <!-- Navigation item -->
          <ul>
            <li><a href="Publicacion.jsp">Publicaciones<!--[if IE 7]><!--></a><!--<![endif]-->
     <!--[if lte IE 6]><table><tr><td><![endif]-->
                <ul>
                  <li><a href="Publicacion.jsp">Top Publicaciones</a></li>
				   <li><a href="MantenimientoPublicaciones.jsp">Mantenimiento</a></li>
				    <li><a href="Publicacion.jsp">Publicaciones</a></li>
					 <li><a href="Publicacion.jsp">Publicaciones</a></li>
					  <li><a href="Publicacion.jsp">Publicaciones</a></li>
					   <li><a href="Publicacion.jsp">Publicaciones</a></li>                                 
                </ul>
              <!--[if lte IE 6]></td></tr></table></a><![endif]-->
            </li>
          </ul>          

          <!-- Navigation item -->
          <ul>
            <li><a href="categorias.jsp">Categorias<!--[if IE 7]><!--></a><!--<![endif]-->
              <!--[if lte IE 6]><table><tr><td><![endif]-->
                <ul>
                  <li><a href="categorias.jsp">Categoria 1</a></li>
                  <li><a href="categorias.jsp">Categoria 2 </a></li>
                  <li><a href="categorias.jsp">Categoria 3 </a></li>
                  <li><a href="categorias.jsp">Categoria 4 </a></li>
                  <li><a href="categorias.jsp">Categoria 5 </a></li>
                  <li><a href="categorias.jsp">Categoria 6 </a></li>
                  <li><a href="categorias.jsp">Categoria 7 </a></li>
                </ul>
              <!--[if lte IE 6]></td></tr></table></a><![endif]-->
            </li>
          </ul>          
        </div>
	  </div>

      <!-- A.4 HEADER BREADCRUMBS -->

      <!-- Breadcrumbs -->
      <div class="header-breadcrumbs">
        <ul>
          <li><a href="index.jsp">Principal</a></li>
          <li><a href="ventas.jsp">Ventas</a></li>
          <li><a href="comprar.jsp">Compras</a></li>
		  <li><a href="registroaviso.jsp">Ingreso de Avisos</a></li>
          <li></li>
        </ul>


        <!-- Search form -->                  
        <div class="searchform">
          <form action="index.html" method="get">
            <fieldset>
              <input name="field" class="field"  value=" Buscar..." />
              <input type="submit" name="button" class="button" value="Ir!" />
            </fieldset>
          </form>
        </div>
      </div>
    </div>

    <!-- For alternative headers END PASTE here -->

    <!-- B. MAIN -->
    <div class="main">
  
      <!-- B.1 MAIN CONTENT -->
      <div class="main-content">
        
        <!-- Pagetitle -->
        <h1 class="pagetitle"> Mantenimiento de Publicaciones </h1>

        <!-- Content unit - One column -->
        <h1 class="block">1 - Mantenimiento </h1><br>
        <div class="column1-unit">
          <p>
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="480" height="100" align="middle">
              <param name="movie" value="img/banner_052.swf" />
              <param name="quality" value="high" />
              <embed src="img/banner_052.swf" width="480" height="100" align="middle" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" ></embed>
            </object>
          </p>
        </div>          
        <hr class="clear-contentunit" />
          
        <!-- Content unit - Two columns -->
<div>
<!-- Este mensaje indica que la grabacion se realizo correctamente. -->
${MENSAJE }
<!-- <form name="myform" method="post" action="GrabaPublicacion" onSubmit="return Validar('TxtTitulo','TxtDescripcion','TxtCantidad','TxtPrecio','TxtDuracion')" > -->
<form name="myformBuscar" method="post" action="BuscaPublicaciones">

<table style="text-align: left; width: 80%;"border="0" cellpadding="0" cellspacing="0" bgcolor= "#FFFFFF">

   <tr>
      <td colspan=2>Titulo</td>
      <td colspan=4>
        <input size="25" id="TxtTitlulo" NAME="TxtTitlulo" size="40%" maxlength="250" value="${param.TxtTitlulo}">
      </td>
   </tr>
   <tr>
      <td colspan=2>Descripcion</td>
      <td colspan=4>
        <input size="25" id="TxtDescripcion" NAME="TxtDescripcion" size="40%" maxlength="250" value="${param.TxtDescripcion}">
      </td>
   </tr>
	<tr>
	  <td colspan=1></td>
	  <td ALIGN="CENTER" colspan=1><input type="reset" value="     Reset     " /></td>
	  <td colspan=1></td>
	  <td colspan=1></td>
	  <td ALIGN=CENTER colspan=1><input type="submit" value="    Grabar    " /></td>
	  <td colspan=1></td>
	</tr>   
	<!-- Inicia codigo de muestra -->
	
	<%@page import="modelo.Publicacion"%>
	<%@page import="negocio.GestionPublicacion"%>
	<%@page import="util.ConexionBD"%>
	<%@page import="excepcion.DAOExcepcion"%>
	<%@page import="java.sql.Connection"%>
	<%@page import="negocio.GestionPublicacion"%>
	
	<%@page import="java.sql.Connection"%>
	<%@page import="java.sql.PreparedStatement"%>
	<%@page import="java.sql.ResultSet"%>
	<%@page import="java.sql.SQLException"%>
	<%@page import="java.text.SimpleDateFormat"%>
	<%@page import="java.util.ArrayList"%>

	<%@page import="java.util.ArrayList"%>
	<%@page import="java.util.Iterator"%>           
    <%
    /*
	GestionCategoria negocio1 = new GestionCategoria();
    ArrayList<Categoria> listado2= negocio1.ListarCategorias_gestion();
   	Iterator w = listado2.iterator();
	if (listado2.size() > 0 ){
	//	out.println("<div id=\"myCarousel\" class=\"carousel slide\">");
	//	out.println("<div class=\"carousel-inner\">");
	Categoria categoria2 = (Categoria) w.next();
		out.println("<table class=\"table table-striped table-condensed\">");
		out.println("<thead>");
		out.println("<tr>");
		out.println("<th>ID</th>");
	     out.println("<th>Nombre</th>");
	     out.println("<th>Descripcion</th>");
	    out.println("<th>Pri Cat</th>");
	 	out.println("</tr>");
	    out.println("</thead>");
	     out.println("<tbody>");
	        out.println("<tr>");
	        out.println("<td>"+categoria2.getIdcategoria()+"</td>");
	        out.println("<td>"+categoria2.getNombre()+"</td>");
	        out.println("<td>"+categoria2.getDescripcion()+"</td>");
	        if (categoria2.getCategoria().getNombre()!=null){
	        	out.println("<td>"+categoria2.getCategoria().getNombre()+"</td>");
	        } else {
	        	out.println("<td> </td>");
	        }
	        out.println("</tr>");
	         out.println("</tbody>");
	 		 out.println("</table>");
	
			while (w.hasNext()){
	    categoria2 = (Categoria) w.next();
			out.println("<table class=\"table table-striped table-bordered\">");
	    		out.println("<tbody>");
	        	out.println("<tr>");
	        out.println("<td>"+categoria2.getIdcategoria()+"</td>");
	        out.println("<td>"+categoria2.getNombre()+"</td>");
	        out.println("<td>"+categoria2.getDescripcion()+"</td>");
	        if (categoria2.getCategoria().getNombre()!=null){
	        	out.println("<td>"+categoria2.getCategoria().getNombre()+"</td>");
	        } else {
	        	out.println("<td> </td>");
	        }
	        out.println("</tr>");
	      out.println("</tbody>");
	 		 out.println("</table>");
	}
		//out.println("</div>");
		//out.println("</div>");  
	}*/
	%>

	<!-- Fin codigo de muestra -->
</table>

</form>

</div>

        <hr class="clear-contentunit" />
          
        <!-- Content unit - One column -->
        <h1 class="block">2 - Anuncios </h1>
        <div class="column1-unit">
          <p class="caption">Puede ingresar sus anuncios con solo su registro de usuario.</p>
          <p class="caption"><span class="credits">
            <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="480" height="80">
              <param name="movie" value="img/banner_044.swf" />
              <param name="quality" value="high" />
              <embed src="img/banner_044.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="480" height="80" ></embed>
            </object>
          </span> </p>
        </div>          
        <hr class="clear-contentunit" />
        
      </div>

      <!-- B.2 MAIN NAVIGATION -->
      <div class="main-navigation">

        <!-- Navigation Level 3 -->
        <div class="round-border-topleft"></div>
               
       

        <!-- Login -->
        <div class="loginform">
          <form method="post" action="index.html"> 
            <p><input type="hidden" name="rememberme" value="0" /></p>
            <p>&nbsp;</p>
            <p>&nbsp;</p>
            <fieldset>
              <p>
                <label for="username_1" class="top">Usuario:</label>
                <br />
                <input type="text" name="username_1" id="username_1" tabindex="1" class="field" onKeyPress="return webLoginEnter(document.loginfrm.password);" value="" /></p>
    	      <p><label for="password_1" class="top">Password:</label><br />
                <input type="password" name="password_1" id="password_1" tabindex="2" class="field" onKeyPress="return webLoginEnter(document.loginfrm.cmdweblogin);" value="" /></p>
    	      <p><input type="checkbox" name="checkbox_1" id="checkbox_1" class="checkbox" tabindex="3" size="1" value="" onClick="webLoginCheckRemember()" />
    	      <label for="checkbox_1" class="right">Recordarme</label>
    	      </p>
    	      <p><input type="submit" name="cmdweblogin" class="button" value="LOGIN"  /></p>
	          <p><a href="#" onClick="webLoginShowForm(2);return false;" id="forgotpsswd_1">Olvido su Password?</a></p>
	        </fieldset>
          </form>
        </div>

        <!-- Search form -->                  
        <h1>Buscar Avisos </h1>
        <div class="searchform">
          <form action="index.html" method="get">
            <fieldset>
              <input name="field" class="field"  value=" Buscar..." />
              <input type="submit" name="button" class="button" value="Ir!" />
			  <h3>&nbsp;</h3>
            </fieldset>
          </form>
        </div>
        <h1 class="first">Categorias</h1>
        <!-- Navigation with grid style -->
        <dl class="nav3-grid">
          <dt><a href="#">Navlink 11</a></dt>
          <dt><a href="#">Navlink 12</a></dt>
            <dd><a href="#">Navlink 121</a></dd>
            <dd><a href="#">Navlink 122</a></dd>
            <dd><a href="#">Navlink 123</a></dd>		
          <dt><a href="#">Navlink 13</a></dt>
          <dt><a href="#">Navlink 14</a></dt>
          <dt><a href="#">Navlink 15</a></dt>
        </dl>                        

        <!-- Title --> 

        <!-- Text formats -->

        <p><!-- Image Links -->
        </p>

        <h3>&nbsp;</h3>
      </div>
    </div>
      
    <!-- C. FOOTER AREA -->      

    <div class="footer">
      <p>Copyright &copy; 2012 Desarrolladores | All Rights Reserved</p>
      <p class="credits">&nbsp;</p>
    </div>      
  </div> 
  
</body>
</html>

